//
//  ReturnTime.m
//  ThePartnerOfToilet
//
//  Created by dllo on 15/10/13.
//  Copyright (c) 2015年 王东. All rights reserved.
//

#import "ReturnTime.h"

@implementation ReturnTime
+(NSString *)getCurrentTime
{
    //    NSDate *nowDate = [NSDate dateWithTimeIntervalSinceNow:0];
    
    NSDateFormatter *formatter = [[NSDateFormatter alloc] init];
    //设置显示日期格式
    [formatter setDateFormat:@"yyyy-MM-dd HH:mm:ss"];
   // NSTimeZone *zone = [NSTimeZone systemTimeZone];
    //    NSInteger seconds = [zone secondsFromGMTForDate:[NSDate date]];
    //获取当地时间
    NSDate *localDate = [NSDate dateWithTimeIntervalSinceNow:0];
    //将date转换成字符串
    NSString *timeStr = [formatter stringFromDate:localDate];
    
    //    return nowDate;
    return timeStr;
}

@end
